export default {
  state: {
    title: localStorage.getItem('title') || "",
    isChildPage: false,
    homeIndexLoaded: false,
    ROLE_KEY_ITEMS: [],
  },
  getters: {
    GET_TITLE(state) {
      return state.title;
    },
    GET_ISCHILDPAGE(state) {
      return state.isChildPage;
    },
    GET_HOMEINDEX_LOADED(state) {
      return state.homeIndexLoaded
    },
    GET_ROLE_KEY_ITEMS(state) {
      return state.ROLE_KEY_ITEMS
    }
  },
  mutations: {
    SET_TITLE(state, data) {
      localStorage.setItem('title', data)
      state.title = data;
    },
    SET_ISCHILDPAGE(state, data) {
      state.isChildPage = data;
    },
    SET_HOMEINDEX_LOADED(state, data) {
      state.homeIndexLoaded = data
    },
    SET_ROLE_KEY_ITEMS(state, data) {
      state.ROLE_KEY_ITEMS = data
    }
  },
  actions: {
    
  },
}
